import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
// 引入viteMockServe
import { viteMockServe } from 'vite-plugin-mock'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react(),
    viteMockServe({
      mockPath: "./mock/",
    })
  ],
  resolve: {
    // 配置别名 @为src目录
    alias: {
      '@': '/src'
    },
  }
})
